package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.AcademicMonographs;
import com.zhijian.medical.entity.vo.request.AcademicMonographsSearchVo;
import com.zhijian.medical.entity.vo.request.AcademicMonographsSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.AcademicMonographsVo;
import com.zhijian.util.page.Page;

import java.util.List;

/**
 * 学术专著 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-04-29 17:28:45
 */
public interface AcademicMonographsService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    AcademicMonographs selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    AcademicMonographsVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param academicMonographs
    * @return
    */
    Long insert(AcademicMonographs academicMonographs);

    /**
    * 更改
    *
    * @param academicMonographs
    * @return
    */
    boolean update(AcademicMonographs academicMonographs);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(AcademicMonographs record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(AcademicMonographsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(AcademicMonographsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param academicMonographsSearchVo
    * @return
    */
    AcademicMonographsVo selectOne(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
    * 总数
    *
    * @param academicMonographsSearchVo
    * @return
    */
    Integer count(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
    * 列表
    *
    * @param academicMonographsSearchVo
    * @return
    */
    List<AcademicMonographsVo> selectList(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
    * 分页查询
    *
    * @param academicMonographsSearchVo
    * @return
    */
    Page<AcademicMonographsVo> selectPage(AcademicMonographsSearchVo academicMonographsSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<AcademicMonographs> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param academicMonographsSearchVo
    * @return
    */
    void deleteByCondition(AcademicMonographsSearchVo academicMonographsSearchVo);
}